import type { Image } from '@/types/upload'
import { request } from '@/utils/request'


// 上传图片
export const upload = (file: File) => {
    const fd = new FormData()
    fd.append('file', file)
    return request<Image>('/upload/image', 'post', fd)
}